package com.fox0g.mapper;

import com.fox0g.pojo.Inorout;
import com.fox0g.pojo.Patientt;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 86176
* @description 针对表【patientt(病人历史体温)】的数据库操作Mapper
* @createDate 2024-07-11 10:49:01
* @Entity com.fox0g.pojo.Patientt
*/
@Mapper
public interface PatienttMapper extends BaseMapper<Patientt> {
    @Insert("insert into test.patientt(patientid,tw, create_time)" +
            " values (#{patientid},#{tw},#{createTime})")
    int insert(Patientt patientt);

    List<Patientt> AllData(@Param("patientid") String patientid,@Param("begin") String begin, @Param("end") String end);

    @Select("select * from patientt where patientid = #{patientid}")
    List<Patientt> selectbypatientid(@Param("patientid") String patientid);
}




